package cn.gson.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the CONNECTOR_STATE_DETAIL database table.
 * 
 */
@Entity
@Table(name="CONNECTOR_STATE_DETAIL")
@NamedQuery(name="ConnectorStateDetail.findAll", query="SELECT c FROM ConnectorStateDetail c")
public class ConnectorStateDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="CONNECTOR_STATE_DETAIL_CONNECTORDETAILID_GENERATOR" )
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CONNECTOR_STATE_DETAIL_CONNECTORDETAILID_GENERATOR")
	@Column(name="CONNECTOR_DETAIL_ID")
	private long connectorDetailId;

	@Column(name="CONNECTOR_DETAIL_NAME")
	private String connectorDetailName;

	@Column(name="CONNECTOR_SELECT_GETVALUE")
	private String connectorSelectGetvalue;

	@Column(name="CONNECTOR_SELECT_SETVALUE")
	private String connectorSelectSetvalue;

	//bi-directional many-to-one association to ConnectorSelect
	@ManyToOne
	@JoinColumn(name="CONNECTOR_SELECT_TYPE")
	private ConnectorSelect connectorSelect;

	//bi-directional many-to-one association to ConnectorState
	@ManyToOne
	@JoinColumn(name="CONNECTOR_ID_DETAIL")
	private ConnectorState connectorState;

	public ConnectorStateDetail() {
	}

	public long getConnectorDetailId() {
		return this.connectorDetailId;
	}

	public void setConnectorDetailId(long connectorDetailId) {
		this.connectorDetailId = connectorDetailId;
	}

	public String getConnectorDetailName() {
		return this.connectorDetailName;
	}

	public void setConnectorDetailName(String connectorDetailName) {
		this.connectorDetailName = connectorDetailName;
	}

	public String getConnectorSelectGetvalue() {
		return this.connectorSelectGetvalue;
	}

	public void setConnectorSelectGetvalue(String connectorSelectGetvalue) {
		this.connectorSelectGetvalue = connectorSelectGetvalue;
	}

	public String getConnectorSelectSetvalue() {
		return this.connectorSelectSetvalue;
	}

	public void setConnectorSelectSetvalue(String connectorSelectSetvalue) {
		this.connectorSelectSetvalue = connectorSelectSetvalue;
	}

	public ConnectorSelect getConnectorSelect() {
		return this.connectorSelect;
	}

	public void setConnectorSelect(ConnectorSelect connectorSelect) {
		this.connectorSelect = connectorSelect;
	}

	public ConnectorState getConnectorState() {
		return this.connectorState;
	}

	public void setConnectorState(ConnectorState connectorState) {
		this.connectorState = connectorState;
	}
	
	
	
	

	public ConnectorStateDetail(String connectorDetailName, String connectorSelectGetvalue,
			String connectorSelectSetvalue, ConnectorSelect connectorSelect, ConnectorState connectorState) {
		super();
		this.connectorDetailName = connectorDetailName;
		this.connectorSelectGetvalue = connectorSelectGetvalue;
		this.connectorSelectSetvalue = connectorSelectSetvalue;
		this.connectorSelect = connectorSelect;
		this.connectorState = connectorState;
	}

	
	     
	

}